package com.firewolf.springboot.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.firewolf.springboot.entities.Department;

public interface DepartmentDao {
	//这里的SQL写在了映射文件中
	public List<Department> findAllDepts();

	//可以用注解来配置，这个时候不需要编写映射文件了
	@Select("select * from department where id=#{id}")
	public Department fidById(Integer id);
}
